<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../babel.min.js"></script>
    <script src="../react.development.js"></script>
    <script src="../react-dom.development.js"></script>
    <title>Document</title>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
    function ListItem(props){
        const listItems = props.items.map((name)=> <li>{name}</li>)
        return <ul>{listItems}</ul>
    }

    const items = ["one", "two", "three", "four", "five", "six"]
    ReactDOM.render(<ListItem items={items}/>,document.getElementById("root"))
</script>
</body>
</html>